package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 记录库存盘点时的序列号情况
 * </p>
 *
 * @author chenj
 * @since 2020-03-28
 */
public class CheckHouseGoodsSn extends Model<CheckHouseGoodsSn> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 盘点商品表id
     */
    private String checkHouseGoodsId;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 序列号
     */
    private String sn;

    /**
     * 状态 1吻合 2新增 3删除
     */
    private Integer status;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getCheckHouseGoodsId() {
        return checkHouseGoodsId;
    }

    public void setCheckHouseGoodsId(String checkHouseGoodsId) {
        this.checkHouseGoodsId = checkHouseGoodsId;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CheckHouseGoodsSn{" +
            "id=" + id +
            ", checkHouseGoodsId=" + checkHouseGoodsId +
            ", goodsId=" + goodsId +
            ", sn=" + sn +
            ", status=" + status +
            ", companyId=" + companyId +
        "}";
    }
}
